package com.github.netty.factory;

import io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory;

/**
 * @author ArchieSean
 * @description 握手工厂
 * @date 2024-08-11
 */
public class ServerHandshakeFactory {


    /**
     * 用于获取握手工厂
     * @param websocketUrl ws的请求连接，全路径：例如：<a href="https://127.0.0.1:8080/chat">...</a>
     * @return obj
     */
    public static WebSocketServerHandshakerFactory getFactory(String websocketUrl){
        return new  WebSocketServerHandshakerFactory(websocketUrl,null,false);
    }

}
